import numpy as np
import matplotlib.pyplot as plt
data = np.array([1,2,3,4,5])
fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ax.plot(data)
plt.show()